package com.alibaba.provider;

import com.alibaba.dubbo.api.DemoService;
import com.alibaba.dubbo.api.HelloMessage;
import com.alibaba.dubbo.api.HelloRequest;

public class DemoServiceImpl implements DemoService {
 
    public String sayHello(String name) {
        return "Hello " + name;
    }

    public HelloMessage hello(HelloRequest request) {
        HelloMessage helloMessage=new HelloMessage();
        helloMessage.setMessage("hello "+request.getName());
        return helloMessage;
    }
}